<template>
  <div>
    <h3>组件2</h3>
    <div>资产: {{ car }}</div>
    <!-- <el-button @click="aa"> 发送</el-button> -->
  </div>
</template>
<script setup>
import { ref, inject } from "vue";
inject("car", { car: "123" });
</script>
<style lang="less" scoped>
div {
  padding: 20px;
  background-color: rgb(217, 236, 173);
}
</style>
